CC=mpicc
CFLAGS=-Wall -std=c99
SOURCES=pub.c game_master.c game.c strategy.c
OBJECTS=$(SOURCES:.c=.o)
EXECUTABLE=pub

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	$(CC) $(CFLAGS) $(OBJECTS) -o $@ 

.c.o:
	$(CC) -c $(CFLAGS) $< -o $@ 

clean:
	rm -rf *o pub 
